package xyz.yeidi.dao.api;

import xyz.yeidi.pojo.Food;

import java.util.List;

/**
 * @Author JIP
 * @Date 2021-08-03 14:47
 * @Version 1.0
 * @Describe :  关于Dao对于Food数据处理的接口
 */
public interface FoodDao {

    //通过商家的id得到对应的所有food
    public List<Food> getFoodsByBusiness(Integer businessId) throws Exception;

    //通过food的id得到对应的food
    public Food getFoodById(Integer id) throws Exception;

    //通过食物的名字,模糊查询
    public List<Food> searchFoodsByName(String foodName) throws Exception;
}
